package com.gopay.common.domain.cbrmb.internationalcard.masapay;

import java.io.Serializable;

/**
 * 
 * @ClassName: MasaPayPayerAuthValidateReq
 * @Description: TODO
 * @author gd.cui
 * @date 2018年3月12日 上午10:28:55
 */
public class MasaPayPayerAuthValidateReq implements Serializable {
	/**
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 1L;
	// 基本参数
	private String version = "1.0";
	private String charset = "utf-8";
	private String language = "cn";
	private String signType = "SHA256";
	private String merchantId = "801128553112016";

	// 业务参数
	private String merchantOrderNo;
	private String enrolmentOrderNo;
	private String paRes;
	private String ext1;
	private String ext2;
	private String remark;
	private String signMsg;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getMerchantOrderNo() {
		return merchantOrderNo;
	}

	public void setMerchantOrderNo(String merchantOrderNo) {
		this.merchantOrderNo = merchantOrderNo;
	}

	public String getEnrolmentOrderNo() {
		return enrolmentOrderNo;
	}

	public void setEnrolmentOrderNo(String enrolmentOrderNo) {
		this.enrolmentOrderNo = enrolmentOrderNo;
	}

	public String getPaRes() {
		return paRes;
	}

	public void setPaRes(String paRes) {
		this.paRes = paRes;
	}

	public String getExt1() {
		return ext1;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	public String getExt2() {
		return ext2;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSignMsg() {
		return signMsg;
	}

	public void setSignMsg(String signMsg) {
		this.signMsg = signMsg;
	}

	@Override
	public String toString() {
		return "MasaPayPayerAuthValidateReq [version=" + version + ", charset=" + charset + ", language=" + language
				+ ", signType=" + signType + ", merchantId=" + merchantId + ", merchantOrderNo=" + merchantOrderNo
				+ ", enrolmentOrderNo=" + enrolmentOrderNo + ", paRes=" + paRes + ", ext1=" + ext1 + ", ext2=" + ext2
				+ ", remark=" + remark + ", signMsg=" + signMsg + "]";
	}

	public String signatureData(String key) {
		return "version=" + version + "&merchantId=" + merchantId + "&signType=" + signType + "&merchantOrderNo="
				+ merchantOrderNo + "&enrolmentOrderNo=" + enrolmentOrderNo + "&paRes=" + paRes + "&key=" + key;
	}
}
